@echo off

:: Word Query - wq
:: - Syntax
::   wq word
::   Note: Use double quotes if including whitespace
:: 
:: - Current Dictionary files:
::   1. DICT_SIMPLE_ANSI.txt
:: 

if "%~1" == "" echo Usage: wq a-word&goto :EOF
set word=%~1
:: NOT in current directory
set startfile=%~dp0dict\DICT_SIMPLE_ANSI.txt
if exist %startfile% (goto PARSER) else (echo No dictionary!&goto :EOF)

:PARSER
for /f "eol=# tokens=1*" %%A in (%startfile%) do @if %%A == %word% (
echo %%B
goto EXIT
)
echo No record found!&goto :EOF

:EXIT